package com.example.shixunandjavagotoyangchen.Eternity.ReisterActivity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.example.modelviewpresenter.View.BasterActivity;
import com.example.shixunandjavagotoyangchen.Eternity.LoginActivity.LoginActivity;
import com.example.shixunandjavagotoyangchen.R;
@Route(path = "/login/reister")
public class ReisterActivity extends BasterActivity {

    private android.widget.ImageView ReisterLogin;
    private android.widget.TextView ReisterShengming;

    @Override
    public int BandLayout() {
        return R.layout.activity_reister;
    }

    @Override
    public void initView() {
        onWindowFocusChanged(true);
        ReisterLogin = (ImageView) findViewById(R.id.Reister_login);
        ReisterShengming = (TextView) findViewById(R.id.Reister_shengming);
    }

    @Override
    public void initDate() {

        ReisterLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(ReisterActivity.this, LoginActivity.class);
                startActivity(intent);
                finish();
            }
        });



        ReisterShengming.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ARouter.getInstance()
                        .build("/reister/reistershengming")
                        .withString("reister","注册用户协议")
                        .navigation();
            }
        });
    }









}
